<?php
/**
* $Id: backend.php 2942 2012-02-21 10:48:18Z huong.pham $
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><?php echo $meta[AppContants::META_TITLE]; ?></title>
    <meta name="keywords" content="<?php echo $meta[AppContants::META_KEYWORDS]; ?>">
    <meta name="description" content="<?php echo $meta[AppContants::META_DESCRIPTION]; ?>">
    
    <!-- Css files -->
    <?php
        $layout[AppContants::LAYOUT_CSS][] = 'global';
        foreach ((array)$layout[AppContants::LAYOUT_CSS] as $cssFile)
        {
            echo "<link href='" . $this->config->item('base_url') . "css/BO/{$cssFile}.css' rel='stylesheet' type='text/css' media='screen' />\n";    
        }            
    ?> 
    <?php
        echo "<script src='" . $this->config->item('base_url') . "js/jquery-1.3.2.min.js' type='text/javascript'></script>\n";    
       
        foreach ((array)$layout[AppContants::LAYOUT_JS] as $jsFile)
        {
            echo "<script src='" . $this->config->item('base_url') . "js/{$jsFile}.js' type='text/javascript'></script>\n";    
        }
    ?>
</head>
<body>

    <div id="container">        
        <!-- begin header -->    
        <?php
        if(!empty($layout[AppContants::LAYOUT_TOP])):
            $this->load->view($layout[AppContants::LAYOUT_TOP]);
        endif;
        ?>
        <!-- // header -->
        
        <!-- Breadcrumb-->
        <?php
        if(!empty($layout[AppContants::BREADCRUMB])):
            $this->widget("Breadcrumb", array('Path' => $layout[AppContants::BREADCRUMB]));
        endif;
        ?>
        <!-- Breadcrumb.end-->
        <div id="main">
                <?php $this->load->view($layout[AppContants::LAYOUT_MAINVIEW]); ?> 
        </div>
        <!-- begin footer -->
        <?php if(!empty($layout[AppContants::LAYOUT_BOTTOM])): ?>
        <hr/>
        <div id="footer">    
            <?php $this->load->view($layout[AppContants::LAYOUT_BOTTOM]);?>
        </div> 
        <?php endif;?>
   </div>  
</body>
</html>